//
//  ZCOrderCheckLeftAndSwCell.m
//  ZCJZ
//
//  Created by sujeking on 2019/2/27.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import "ZCOrderCheckLeftAndSwCell.h"

@interface ZCOrderCheckLeftAndSwCell()

@property (weak, nonatomic) IBOutlet UILabel *label;
@property (weak, nonatomic) IBOutlet UISwitch *kswitch;


@end


@implementation ZCOrderCheckLeftAndSwCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (void)setKeystr:(NSString *)keystr {
    _keystr = keystr;
    self.label.text = keystr;
}

- (void)setIsOn:(BOOL)isOn {
    _isOn = isOn;
    self.kswitch.on = isOn;
}

- (IBAction)defalutAction:(UISwitch *)sender {
    if (self.switchOnCallBack) {
        self.switchOnCallBack(sender.isOn);
    }
}


@end
